<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #tab1 {
            border: 1px solid #ccc;
            width: 400px;
            height: auto;
        }

        #tab2 {
            width: 200px;
            height: auto;
            border: 1px solid orangered;
            margin-top: 50px;
        }

        ul,
        ol {
            list-style: none;

        }

        ul li {
            float: left;
            width: 200px;
            height: 50px;
            line-height: 50px;
            text-align: center;

        }

        .hide {
            display: none;
        }

        .active {
            background-color: #ff0000;
        }

        ol li {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: #000;
            float: left;
            margin: 20px;

        }
        ol{
            width:400px;
            height: 50px;
        }
        #tab2 p {
            width: 200px;
            height: 100px;
            line-height: 100px;
        }
        .bg{
	background: red;
}
    </style>
</head>

<body>
    <div id="tab1">
        <ul>
            <li class="active">信息公告</li>
            <li>服务公告</li>
        </ul>
        <div>
            <p>信息公告信息公告信息公告信息公告</p>
            <p class="hide">服务公告服务公告服务公告服务公告</p>
        </div>
    </div>
    <div id="tab2">
        <ol>
            <li class="bg"></li>
            <li></li>
        </ol>
          <div style="clear: both;"></div>
        <div>
            <p>红红就哦那个</p>
            <p class="hide">嘿嘿嘿</p>
        </div>
    </div>
    <script src="js/jquery1.7.js"></script>
    <script src="js/jq-tab.js"></script>
    <script>
    $("#tab1").tab();
    $("#tab2").tab({
        active:"bg",
        parents:"#tab2"
    });
    </script>
</body>

</html>